package com.bruce.impl;

import com.bruce.service.UserService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author Bruce
 */
public class UserServiceImpl extends UnicastRemoteObject implements UserService  {
    public UserServiceImpl() throws RemoteException{
        super();
    }
    @Override
    public String getUser(String name) throws RemoteException {
        System.out.println("name: " + name);
        return "{\"name\":\""+name+"\",\"age\":20,\"gender\",\"男\"}";
    }
}
